/******************************************************************************
 * Copyright (C) 2012 Maxim Integrated Products, All Rights Reserved.
 *
 * This software is protected by copyright laws of the United States and
 * of foreign countries. This material may also be protected by patent laws
 * and technology transfer regulations of the United States and of foreign
 * countries. This software is furnished under a license agreement and/or a
 * nondisclosure agreement and may only be used or reproduced in accordance
 * with the terms of those agreements. Dissemination of this information to
 * any party or parties not specified in the license agreement and/or
 * nondisclosure agreement is expressly prohibited.
 *
 *     Description: AM62 Startup Code
 *             $Id: vectors.c 4659 2015-01-20 21:21:06Z robert.muchsel $
 *
 ******************************************************************************
 */

/** Global includes */
#include <config.h>
/** Other includes */
//#include <arch/cortex-m3/nvic.h>
/** Local includes */

/* FreeRTOS includes. */
extern void xPortPendSVHandler( void );
extern void xPortSysTickHandler( void );
extern void vPortSVCHandler( void );

/* Fault handlers */
extern void NMI_Handler(void);
extern void HardFault_Handler(void);
extern void MemManage_Handler(void);
extern void BusFault_Handler(void);
extern void UsageFault_Handler(void);
extern void DebugMon_Handler(void);
extern void handler_default_undefined_(void);

void (*rom_vectors[])(void) =
{
    (void (*)(void))0,                // The initial stack pointer (not used)
    (void (*)(void))0,                // The reset handler (not used)
    NMI_Handler,                      // The NMI handler
    HardFault_Handler,                // The hard fault handler
    MemManage_Handler,                // The MPU fault handler
    BusFault_Handler,                 // The bus fault handler
    UsageFault_Handler,               // The usage fault handler
    0,                                      // Reserved
    0,                                      // Reserved
    0,                                      // Reserved
    0,                                      // Reserved
    vPortSVCHandler,                    // SVCall handler
    DebugMon_Handler,                    // Debug monitor handler
    0,                                      // Reserved
    xPortPendSVHandler,                    // The PendSV handler
    xPortSysTickHandler,                    // The SysTick handler
    handler_default_undefined_,                    // Interrupt #16
    handler_default_undefined_,                    // Interrupt #17
    handler_default_undefined_,                    // Interrupt #18
    handler_default_undefined_,                    // Interrupt #19
    handler_default_undefined_,                    // Interrupt #20
    handler_default_undefined_,                    // Interrupt #21
    handler_default_undefined_,                    // Interrupt #22
    handler_default_undefined_,                    // Interrupt #23
    handler_default_undefined_,                    // Interrupt #24
    handler_default_undefined_,                    // Interrupt #25
    handler_default_undefined_,                    // Interrupt #26
    handler_default_undefined_,                    // Interrupt #27
    handler_default_undefined_,                    // Interrupt #28
    handler_default_undefined_,                    // Interrupt #29
    handler_default_undefined_,                    // Interrupt #30
    handler_default_undefined_,                    // Interrupt #31
    handler_default_undefined_,                    // Interrupt #32
    handler_default_undefined_,                    // Interrupt #33
    handler_default_undefined_,                    // Interrupt #34
    handler_default_undefined_,                    // Interrupt #35
    handler_default_undefined_,                    // Interrupt #36
    handler_default_undefined_,                    // Interrupt #37
    handler_default_undefined_,                    // Interrupt #38
    handler_default_undefined_,                    // Interrupt #39
    handler_default_undefined_,                    // Interrupt #40
    handler_default_undefined_,                    // Interrupt #41
    handler_default_undefined_,                    // Interrupt #42
    handler_default_undefined_,                    // Interrupt #43
    handler_default_undefined_,                    // Interrupt #44
    handler_default_undefined_,                    // Interrupt #45
    handler_default_undefined_,                    // Interrupt #46
    handler_default_undefined_,                    // Interrupt #47
    handler_default_undefined_,                    // Interrupt #48
    handler_default_undefined_,                    // Interrupt #49
    handler_default_undefined_,                    // Interrupt #50
    handler_default_undefined_,                    // Interrupt #51
    handler_default_undefined_,                    // Interrupt #52
    handler_default_undefined_,                    // Interrupt #53
    handler_default_undefined_,                    // Interrupt #54
    handler_default_undefined_,                    // Interrupt #55
    handler_default_undefined_,                    // Interrupt #56
    handler_default_undefined_,                    // Interrupt #57
    handler_default_undefined_,                    // Interrupt #58
    handler_default_undefined_,                    // Interrupt #59
    handler_default_undefined_,                    // Interrupt #60
    handler_default_undefined_,                    // Interrupt #61
    handler_default_undefined_,                    // Interrupt #62
    handler_default_undefined_,                    // Interrupt #63
};

/******************************************************************************/
/* EOF */
